<?php
header("content-type:text/html;charset=utf8");
$dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
$sql="select * from members";
$arr=$dbh->query($sql)->fetchAll(PDO::FETCH_ASSOC);
?>
<table border="1">
    <tr>
        <td>编号</td>
        <td>账号</td>
        <td>密码</td>
        <td>确认密码</td>
        <td>操作</td>
    </tr>
    <?php foreach($arr as $key=>$value) { ?>
        <tr>
            <td><?php echo $value['id']?></td>
            <td><?php echo $value['username']?></td>
            <td><?php echo $value['pwd']?></td>
            <td><?php echo $value['pwddd']?></td>
            <td>
                <a href="mulu.php">进入缓存页面</a>
            </td>
        </tr>
    <?php } ?>
</table>
